package com.sluggard.workflow.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * myabtis plus配置参数
 *
 * @author lizheng
 * @since 2024.4.17
 */
@Data
@Validated
@ConfigurationProperties(prefix = WorkflowConfigConstants.CONFIG_PROPERTIES_PREFIX)
public class WorkflowConfigProperties {

    private String databaseType;

    private String schemeUpdate;

    private String historyTimeToLive;

    private String historyLevel;

    private boolean customIdentityService;

    private String customIdentityServiceName;

    private String processEngineName;

    WorkflowConfigProperties() {
        this.databaseType = "mysql";
        this.schemeUpdate = "true";
        this.historyTimeToLive = "P0D";
        this.historyLevel = "full";
        this.customIdentityService = false;
    }

}
